package com.qf.dao;

import com.qf.pojo.User;
import org.apache.ibatis.annotations.Param;
import sun.nio.cs.US_ASCII;

import java.util.List;
import java.util.Map;

/**
 * @author bss
 * @version V1.0
 * @Project maven
 * @Package com.qf.dao
 * @Description:
 * @Date 2022/9/22 15:04
 */
public interface UserDao {
    public List<User> findAll();

    public User findById(int id);

    public List<User> findByCondition(@Param("sex") String sex,@Param("id") int id);

    public List<User> findByMap(Map<String ,Object> map);

    public List<User> findByBean(User user);

    public boolean delete(int id);

    public int update(User user);

    public void insert(User user);

}
